<?php include DIR_MODULES . 'menu/menu_main_contact.php'; ?>

<table cellpadding="0" cellspacing="0" width="100%" border="0">
	<tr>
            <td id="coloana_stanga_root_var" valign="top">
            <!-- coloana stanga /////////////////////////////////////// -->
            <!-- end meniu stanga ///////////////////////////////////// -->
                <?php 
                $cStanga = mysql_query("select * from dt_mod_visible 
                                where z_id = '1'
                                and visible = '1'
                                and p_id = '2'
                                order by `order`");
                include DIR_MODULES . 'coloane_module/coloana_stanga.php';
                ?>
            <!-- end coloana stanga /////////////////////////////////// -->
            </td>
            <td class="coloana_separator" valign="top">&nbsp;</td>
            <?php 
                if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_SERVER['REQUEST_URI'] == '/daimtour/')
                    echo '<td  id="coloana_dreapta_root" valign="top">';
                else
                    echo '<td  id="coloana_dreapta_root_var" valign="top">';
            ?>
		<!-- mijloc si dreapta //////////////////////////////////// -->
			<table cellpadding="0" cellspacing="0" width="100%" border="0">
				<tr>
					<td id="content" valign="top">
					<!-- content mijloc /////////////////////////////////////// -->
						<div class="mijloc_root_pages">
						<?php 
							//pagina contact
							$contact = $dbClass->slc_db_where("dt_pages", strtolower("p_title"), strtolower($_GET['pg']));
							$cRow = mysql_fetch_array($contact);
							
							echo '<div class="custom_h1"><b>'.$cRow['p_title'].'</b></div>';
							echo '<div class="general_text" style="border:none;">'.$cRow['p_content'].'</div>';
						?>
						</div>
					<!-- end content mijloc /////////////////////////////////// -->
					</td>
<td class="coloana_separator" valign="top">&nbsp;</td>
					<?php 
						$cDreapta = mysql_query("select * from dt_mod_visible 
								where z_id = '2'
								and visible = '1'
								and p_id = '2'
								order by `order`");
						//daca nu exista nici un rezultat atunci ascunde coloana
						if (mysql_num_rows($cDreapta)>0){
					?>
					<td id="content_dreapta" valign="top">
					<!-- content dreapta ////////////////////////////////////// -->
                                        <?php include DIR_MODULES . 'coloane_module/coloana_dreapta.php'; ?>
					<!-- end content dreapta ////////////////////////////////// -->
					</td>
					<?php }?>
				</tr>
			</table>
		<!-- end mijloc si dreapta //////////////////////////////// -->
		</td>
	</tr>
</table>